<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/6/8
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-4"></div>

        <div class="col-md-4">
            <form class="form-horizontal" action="${pageContext.request.contextPath}/updateServlet" method="post">
                <input type="hidden" name="id" value="${goods.id}">
                <div class="form-group">
                    <label for="inputName" class="col-sm-3 control-label">名称</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputName" name="name" value="${goods.name}" placeholder="请输入名称">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPrice" class="col-sm-3 control-label">价格</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputPrice" name="price" value="${goods.price}" placeholder="请输入价格">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputInfo" class="col-sm-3 control-label">详情</label>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" id="inputInfo" name="info" value="${goods.info}" placeholder="请输入详情">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-6 col-sm-6">
                        <button type="submit" class="btn btn-success">提交</button>
                        <button type="reset" class="btn btn-success">重置</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-md-4">

        </div>
    </div>
</div>
</body>
</html>
